package com.ttg.model.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ttg.common.entities.BasePage;
import com.ttg.common.dto.TagProducer;
import com.ttg.model.pojo.BankPrivatePrimitive;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;
import org.apache.ibatis.annotations.Update;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * @author zhangHongYuan
 * @description
 * @date 2024/4/16 15:57
 */
public interface BankPrivatePrimitiveMapper extends BaseMapper<BankPrivatePrimitive> {

    @Delete("truncate table tbl_bank_private_primitive")
    void truncate();

    List<String> getVipCstIdsByVipRatingConfig(BasePage basePage,
                                               @Param("ratingStart") Long ratingStart,
                                               @Param("ratingEnd") Long ratingEnd,
                                               @Param("max") LocalDateTime max,
                                               @Param("min") LocalDateTime min,
                                               @Param("type") int i);

    List<Long> getVipIdsByTags(@Param("tags") List<TagProducer> tags, @Param("key") String key);

    List<BankPrivatePrimitive> tblBankPrivatePrimitive(@Param("sql") String sql,@Param("size") Integer size,@Param("startId") Long startId);

}
